package me.boger.venusplayer.media

import android.content.Context
import android.net.Uri
import android.view.SurfaceView
import org.videolan.libvlc.IVLCVout
import org.videolan.libvlc.MediaPlayer
import java.io.FileDescriptor

/**
 * Created by hb.chen on 2017/10/11.
 */
interface IMediaWorker {
    fun create(context: Context,
               surfaceView: SurfaceView,
               eventListener: MediaPlayer.EventListener,
               voutCallback: IVLCVout.Callback)

    fun destroy()

    fun testPlay(fd: FileDescriptor)

    fun play(uri: Uri)

    fun getVLCVersion(): String?

    fun attach()

    fun detach()
}